package com.luojing.springcloud.kafka;/**
 * Created by luojing on 2017/6/7.
 */

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.kafka.core.KafkaTemplate;
import org.springframework.stereotype.Component;

import java.util.Random;
import java.util.UUID;

/**
 * @author
 * @create 2017-06-07 16:03
 **/
@Component
public class Producer {
    @Autowired
    private KafkaTemplate kafkaTemplate;

    public void send(){
        kafkaTemplate.send("test","hahaha");
    }
}
